package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 每年季度
 * </p>
 *
 * @author min
 * @since 2022-08-22
 */
@Data
public class Quarter implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String name;

    private String aliasName;

    /**
     * 季度的num值
     */
    private Integer num;

    /**
     * 开始时间
     */
    private LocalDate startDate;

    /**
     * 结束时间
     */
    private LocalDate endDate;

    /**
     * 第二次课开始时间
     */
    private LocalDate twoCourseDate;

    /**
     * 年份
     */
    private Integer yearPart;

    private Integer sort;

    /**
     * 1是学期，2是假期
     */
    private Integer type;

    private Integer level;

    /**
     * 是否当前
     */
    @TableField(exist = false)
    private Integer isCurrent;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    private LocalDateTime deletedAt;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    /**
     * 超过15次课，是否继续扣课时
     */
    private Integer isDeductHouse;

    /**
     * 期中考试时间
     */
    private LocalDate midtermDate;

    @TableField(exist = false)
    private Integer diffNum;

    @TableField(exist = false)
    private List<Quarter> quarterList;
}
